cmake_minimum_required(VERSION 2.8)

set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")

project( DisplayImage )

set(OpenCV_INCLUDE_DIRS "D:/app/opencv/opencv/build/x64/mingw/lib")
set(OpenCV_LIBS "D:/app/opencv/opencv/build/include")

find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
add_executable( DisplayImage main.cpp )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
